package com.example.whatrubbish.mapper;

import com.example.whatrubbish.model.SearchRecord;
import com.example.whatrubbish.vo.Criteria;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Mapper
@Component("SearchRecordMapper")
public interface SearchRecordMapper {
    List selectSearchRecord(Criteria criteria);

    Long selectSearchRecordCount(Criteria criteria);

    List selectRecordWithPercent();

    List<Map<String, Object>> selectFiveDaysRecordCount();

    int deleteByPrimaryKey(Long id);

    int insert(SearchRecord record);

    int insertSelective(SearchRecord record);

    SearchRecord selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SearchRecord record);

    int updateByPrimaryKey(SearchRecord record);
}